home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
swagg_m.zip
/
HARDWARE.SWG
/
0003_Determine Cluster Size.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-05-28
|
457b
|
20 lines
{
> Is there any way to find the size of each allocation Unit in a Hard drive?
}
Uses Dos;
Function clustsize (drive : Byte) : Word;
Var
regs : Registers;
begin
regs.cx := 0; {set For error-checking just to be sure}
regs.ax := $3600; {get free space}
regs.dx := drive; {0=current, 1=a:, 2=b:, etc.}
msDos (regs);
clustsize := regs.ax * regs.cx; {cluster size!}
end;
begin
Writeln(ClustSize(0));
end.